=render :partial => 'menu'

%h1 Top Level Issue Tracking

.dashboard
  %table.table
    %tr
      %th Program
      %th Result / Recommendations
      %th Owner
      %th Due Date
    -@system_controls.each do |sc|
      %tr
        %td
          %p
            &=sc.control.program.title
          %p.slug
            &=sc.control.slug
        -if sc.evidence_complete?
          -unless sc.good_state?
            %td
              %p
                &=sc.test_why
              %p
                &=sc.test_recommendation
            %td
              &=sc.system.owner.name
        -else
          %td Evidence Incomplete
          %td
            &=sc.system.owner.name

-content_for :sidebar, render(:partial => "base/sidebar")
